
package listener;

import org.springframework.batch.core.ExitStatus;
import org.springframework.batch.core.StepExecution;
import org.springframework.batch.core.StepExecutionListener;

/**
 *
 * @author wangbh
 */
public class CustomStepListener implements StepExecutionListener {

    public void beforeStep(StepExecution stepExecution) {
        System.out.println("before step");
    }

    public ExitStatus afterStep(StepExecution stepExecution) {
        System.out.println("after step");
        return ExitStatus.COMPLETED;
    }

}
